str1 = input("请输入字符串：")
dic = {}
max = 0
s = 0

for i in str1:
    # dic[i] = str1.count(i)
    a = i
    count = 0
    for j in str1:
        if a == j:
            count+=1
        dic[i] = count

for k,v in dic.items():
    print(k,v)
    if max < v:
        max = v

for k1,v1 in dic.items():
    if v1 == max:
        print(k1)


